package com.example.demo.col;

import org.springframework.context.annotation.Profile;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;


@Component
public class MySingletonBean1 {

    private final String id;

    public MySingletonBean1() {
        // 初始化唯一ID（用来演示单例特性）
        this.id = "Bean-" + System.currentTimeMillis();
    }

    public String getId() {
        return id;
    }
}
